package com.ruoyi.aitdemo;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.alibaba.fastjson.JSONObject;
import com.ruoyi.aitcommon.utils.JSONResult;

import javax.annotation.PostConstruct;

/**
 * rest api示例
 * 可以新增ait的rest api
 * 
 * @author Administrator
 *
 */
@RestController
@RequestMapping("/ait/demoplugin")
public class AITDemoController {

	/**
	 * 新增接口
	 * @return
	 */
	@GetMapping("/hello")
	public JSONObject hello()
    {
		System.out.println("hello~~~~~~");
		return JSONResult.success("Hello World!");
    }
}
